<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子10</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
    <script type="text/javascript" src="../lib/jquery-easyui-1.4.2/jquery.min.js"></script>
</head>
<body>
    <h1>你好!!!</h1>

    <div id="app">11111</div>


    <script type="text/javascript">
        var Module = Stapes.subclass();

        Module.proto({
            'sayName' : function() {
                console.log('I say my name');
            }
        });

        'sayName' in Module; // false, not a static method
        'sayName' in Module.prototype; // true


        console.log( 'sayName' in Module );
        console.log( 'sayName' in Module.prototype );


        // Note that using proto is the same as:
        /*Module.prototype.sayName = function() {
            console.log('I say my name');
        };*/
    </script>


</body>
</html>